home *** CD-ROM | disk | FTP | other *** search
- ;-------------------------comout routine begins--------------------------+
- ; from BLUEBOOK OF ASSEMBLY ROUTINES FOR IBM PC & XT.
- ; page : 37
- ;
- ; NAME COMOUT
- ; ROUTINE FOR COMMUNICATIONS LINE OUTPUT
- ;
- ; FUNCTION: This routine sends a byte out one of the two communications
- ; lines.
- ; INPUT: Upon entry AL contains the byte to be sebt out and DX contains
- ; the comm unit number (0 for comm1: and 1 for comm2:).
- ; OUTPUT: Output is sent to the specified communications line.
- ; REGISTERS USED: No registers are modified.
- ; SEGMENTS REFERENCED: None
- ; ROUTINES CALLED: BIOS interrupt 14h (RS232 I/O) is used.
- ; SPECIAL NOTES: None
- ;
- ; ROUTINE TO SEND OUTPUT TO A COMMUNICATIONS LINE
- ;
- comout proc far
- ;
- mov ah,1 ; send it out
- int 14h ; RS232 BIOS call
- ;
- ret ; return
- ;
- comout endp
- ;-------------------------comout routine ends---------------------------+
-